#include <iostream>
using namespace std;

struct stu
{
    string name;
    int a;
    int b;
    stu(){
        cout<<"无参构造函数"<<endl;

    }
    stu(int a,int b):a(a),b(b){
        cout << "有参构造函数" << endl;
    }
    ~stu(){
        cout << "析构函数" << endl;
    }
    stu(const stu &a){
        this->a = a.a;
        this->b = a.b;
        cout << "拷贝构造函数" << endl;

    }
    void show(){
        cout << a <<" " << b<< endl;
    }
};


int main(){
    stu a;
    a.show();
    stu b(1,2);
    b.show();
    stu c(b);
    c.show();
    return 0;
}